const isOs = () => {
  return new Promise((resolve, reject) => {
    window?.parent?.postMessage({ // 雪浪OS融合传参
      origin: 'hufu',
      operation: 'pageInit',
    }, '*')
    window.addEventListener && window.addEventListener('message', (event) => { // 雪浪OS融合接收参数
      if (typeof event?.data === 'object' && event?.data?.operation === 'pageInit') {
        if (event?.data?.origin === 'xuelangos') {
          document.documentElement.style.fontSize = "100px"; //
          resolve(true)
        } else {
          resolve(false)
        }
      } else {
        resolve(false)
      }
    })
  })
}
window.isOs = isOs